package com.bj58.mis.apm.server.kylin.util;

import com.google.common.collect.ComparisonChain;

import java.util.Comparator;

public class ComparUtil {
    public static final Comparator<Long> cuboidSelectComparator = new Comparator<Long>() {
        public int compare(Long o1, Long o2) {
            return ComparisonChain.start().compare(Long.bitCount(o1), Long.bitCount(o2)).compare(o1, o2).result();
        }
    };
}
